[tools] Use auxbin.py to determine libpath at build time.
authorChristian Limpach <Christian.Limpach@xensource.com>
Mon, 5 Mar 2007 16:43:12 +0000 (16:43 +0000)
committerChristian Limpach <Christian.Limpach@xensource.com>
Mon, 5 Mar 2007 16:43:12 +0000 (16:43 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tools/python/Makefile

index dfef918cb45131aff5570d38c7424ddc5277032b..ae4254c6e68810c67566c76bbef1942d61055d47 100644 (file)
@@ -18,8 +18,9 @@ build:
 
 .PHONY: install
 ifndef XEN_PYTHON_NATIVE_INSTALL
+install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()")
 install: install-messages
-       CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force
+       CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python"
 else
 install: install-messages
        CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force